import request from '@/utils/request'

// 查询投资策略列表
export function listFundInvestStrategy(query) {
  return request({
    url: '/strategy/fundInvestStrategy/list',
    method: 'get',
    params: query
  })
}

// 查询投资策略详细
export function getFundInvestStrategy(id) {
  return request({
    url: '/strategy/fundInvestStrategy/' + id,
    method: 'get'
  })
}

// 保存投资策略
export function saveFundInvestStrategy(data) {
  return request({
    url: '/strategy/fundInvestStrategy/save',
    method: 'post',
    data: data
  })
}

// 删除投资策略
export function delFundInvestStrategy(id) {
  return request({
    url: '/strategy/fundInvestStrategy/' + id,
    method: 'delete'
  })
}

// 导出投资策略
export function exportFundInvestStrategy(query) {
  return request({
    url: '/strategy/fundInvestStrategy/export',
    method: 'get',
    params: query
  })
}

// 根据基金ID获取投资策略信息
export function getInvestStrategyByFundId(fundId) {
  return request({
    url: '/strategy/fundInvestStrategy/getInvestStrategyByFundId/' + fundId,
    method: 'get'
  })
}
